<script setup>
import TheWelcome from '../components/TheWelcome.vue'
import { getCurrentInstance } from 'vue'

const { proxy } = getCurrentInstance()

function updateMessage() {
  proxy.$emit('updateMessage', 'Home component updated the message.')
}
</script>

<template>
  <main>
    <TheWelcome />
    <button @click="updateMessage">Update Message</button>
  </main>
</template>
